package com.qf;

import com.qf.dao.impl.UsersDaoImpl;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;

/**
 * 2019/11/29
 * Administrator
 * restfulServer1129
 * 面向对象面向君  不负代码不负卿
 */
public class test {
    public static void main(String[] args) {

        JAXRSServerFactoryBean jaxrsServerFactoryBean = new JAXRSServerFactoryBean();
        //设置服务地址
        jaxrsServerFactoryBean.setAddress("http://localhost:8080/");
        //设置服务的工具类
        jaxrsServerFactoryBean.setServiceBean(new UsersDaoImpl());
        //创建服务
        jaxrsServerFactoryBean.create();
        System.out.println("服务器启动");


    }
}
